# Paste your code into this box 
su='bobbbobob'
number=0
n=0
num=len(su)-2
while num>0:
    if su[n]+su[n+1]+su[n+2]=='bob':
        number+=1
    n+=1
    num-=1
print ('Number of times bob occurs is: '+str(number))

